﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Configuration;

namespace LINQtoLDAPDemo_Console.disable
{
    public class GroupMapping : LinqToLdap.Mapping.ClassMap<Group>
    {
        public GroupMapping()
        {
            NamingContext(string.Format("CN=Groups,{0}", ConfigurationSettings.AppSettings["ldapPartition"]));
            ObjectCategory("group");

            Map(g => g.Name).Named("displayName");
            Map(g => g.Description);
            Map(g => g.Members).Named("member");

            DistinguishedName(g => g.DistinguishedName);
        }
    }
}
